package com.reebake.ideal.user.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

 /**
 * 三方用户
 * 
 */
@Schema(name = "三方用户", description = "undefined")
@TableName("idl_user_third_party")
@Data
public class UserThirdParty implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Schema(name = "主键", description = "")
    @TableId
    private String userThirdPartyId;

    /** 用户编号 */
    @Schema(name = "用户编号", description = "")
    private String userId;

    /** 三方系统唯一id */
    @Schema(name = "三方系统唯一id", description = "")
    private String uuid;

    /** 用户名 */
    @Schema(name = "用户名", description = "")
    private String username;

    /** 用户昵称 */
    @Schema(name = "用户昵称", description = "")
    private String nickname;

    /** 用户头像 */
    @Schema(name = "用户头像", description = "")
    private String avatar;

    /** 用户网址 */
    @Schema(name = "用户网址", description = "")
    private String blog;

    /** 所在公司 */
    @Schema(name = "所在公司", description = "")
    private String company;

    /** 位置 */
    @Schema(name = "位置", description = "")
    private String location;

    /** 用户邮箱 */
    @Schema(name = "用户邮箱", description = "")
    private String email;

    /** 用户备注 */
    @Schema(name = "用户备注", description = "")
    private String remark;

    /** 性别 */
    @Schema(name = "性别", description = "")
    private String gender;

    /** 用户来源 */
    @Schema(name = "用户来源", description = "")
    private String source;

    /** 删除标记 */
    @Schema(name = "删除标记", description = "")
    @TableLogic
    private Boolean deleteFlag;

    /** 租户号 */
    @Schema(name = "租户号", description = "")
    private String tenantId;

    /** 乐观锁 */
    @Schema(name = "乐观锁", description = "")
    private Integer revision;

    /** 创建人 */
    @Schema(name = "创建人", description = "")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /** 创建时间 */
    @Schema(name = "创建时间", description = "")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Schema(name = "更新人", description = "")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /** 更新时间 */
    @Schema(name = "更新时间", description = "")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

}